/*
 * @Author: TT-hzy 
 * @Date: 2024-06-27 11:50:22
 * @LastEditors: TT-hzy 
 * @LastEditTime: 2024-06-29 17:36:42
 * @Description: 
 */
'use strict';

import { EggPlugin } from 'egg';

const plugin: EggPlugin = {};

// 配置 egg-sequelize 
// 数据库插件
plugin.sequelize = {
    package: 'egg-sequelize-ts',
    enable: true,
};

// 配置 egg-cors
// 跨域插件
plugin.cors = {
    package: 'egg-cors',
    enable: true,
}

/// 校验请求参数插件
plugin.valparams = {
    enable: true,
    package: 'egg-valparams'
}

/// 配置 egg-jwt
/// 校验用户token
plugin.jwt = {
    enable: true,
    package: 'egg-jwt'
}
export default plugin;
